home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG PD-ROM BV3
/
BMUG PD-ROM Version BV3 (CDRM1097900).iso
/
HyperCard
/
Games
/
CirclusMaximus™
/
card_9362.txt
< prev
next >
Wrap
Text File
|
1991-03-02
|
3KB
|
126 lines
-- card: 9362 from stack: in
-- bmap block id: 11008
-- flags: 4000
-- background id: 7338
-- name: Segment w/ Two Bases
----- HyperTalk script -----
on mouseUp
set numberFormat to <0.000000>
--Calculate Segment Area
get 2*pi*card field "Radius"*card field "Height"
put it into card field "Segment Area"
--Calculate Segment Volume
get (pi*(card field "Height"^3/6))+((pi*(card field "Radius r1"^2+ card field "Radius r2"^2)*card field "Height")/2)
put it into card field "Segment Volume"
end mouseUp
-- part 1 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=312 top=96 right=114 bottom=459
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Radius
-- part 2 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=312 top=119 right=137 bottom=459
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Height
-- part 3 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=312 top=143 right=161 bottom=459
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Radius r1
-- part 4 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=312 top=167 right=185 bottom=459
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Radius r2
-- part 5 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=319 top=226 right=245 bottom=448
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Segment Area
-- part 6 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=319 top=265 right=284 bottom=448
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Segment Volume
-- part contents for card part 1
----- text -----
.500000
-- part contents for card part 2
----- text -----
.250000
-- part contents for card part 3
----- text -----
.125000
-- part contents for card part 4
----- text -----
.0625
-- part contents for card part 5
----- text -----
0.785398
-- part contents for card part 6
----- text -----
0.015851